import React from 'react'
import {useNavigate,Outlet} from 'react-router-dom'
export default function Home() {
  const navigate = useNavigate()
  const getmovieListhandle = ()=>{
    navigate('/main/home/movie/?name=花千骨&&person=陈都灵')
  }
  return (
    <div>
         <h3>我是Home的内容</h3>
         <button onClick={getmovieListhandle} >获取movie信息</button>
         <Outlet />
    </div>
  )
}
